home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / src / toplev.h < prev    next >
C/C++ Source or Header  |  1997-05-26  |  3KB  |  99 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. #if !defined (octave_toplev_h)
  24. #define octave_toplev_h 1
  25.  
  26. #include <cstdio>
  27.  
  28. class octave_value;
  29. class tree_function;
  30. class tree_statement_list;
  31. class charMatrix;
  32.  
  33. #include <string>
  34.  
  35. extern void clean_up_and_exit (int) GCC_ATTR_NORETURN;
  36.  
  37. extern void parse_and_execute (FILE *f, int print = 0);
  38.  
  39. extern void parse_and_execute (const string& s, int print = 0,
  40.                    int verbose = 0,
  41.                    const char *warn_for = 0);
  42.  
  43. extern octave_value eval_string (const string&, int print,
  44.                   int& parse_status);
  45.  
  46. extern int main_loop (void);
  47.  
  48. extern void do_octave_atexit (void);
  49.  
  50. extern void symbols_of_toplev (void);
  51.  
  52. // argv[0] for this program.
  53. extern string Vprogram_invocation_name;
  54.  
  55. // Cleaned-up name of this program, not including path information.
  56. extern string Vprogram_name;
  57.  
  58. // Login name for user running this program.
  59. extern string Vuser_name;
  60.  
  61. // Name of the host we are running on.
  62. extern string Vhost_name;
  63.  
  64. // Home directory for the current user.
  65. extern string Vhome_directory;
  66.  
  67. // Nonzero means we are using readline.
  68. extern int using_readline;
  69.  
  70. // Nonzero means we printed messages about reading startup files.
  71. extern int reading_startup_message_printed;
  72.  
  73. // Command number, counting from the beginning of this session.
  74. extern int current_command_number;
  75.  
  76. // Nonzero means we are exiting via the builtin exit or quit functions.
  77. extern int quitting_gracefully;
  78.  
  79. // Current command to execute.
  80. extern tree_statement_list *global_command;
  81.  
  82. // Pointer to function that is currently being evaluated.
  83. extern tree_function *curr_function;
  84.  
  85. // Nonzero means input is coming from startup file.
  86. extern int input_from_startup_file;
  87.  
  88. // Nonzero means that input is coming from a file that was named on
  89. // the command line.
  90. extern int input_from_command_line_file;
  91.  
  92. #endif
  93.  
  94. /*
  95. ;;; Local Variables: ***
  96. ;;; mode: C++ ***
  97. ;;; End: ***
  98. */
  99.